<input type="text" ng-model="details.username" placeholder="Username">
<input type="password" ng-model="details.password" placeholder="Password">
<span ng-show="error">{{error}}</span>
<button ng-click="login()">Login</button>